import { ColumnProps } from "/@/components/ProTable/interface";
import { genderType, userLocked } from "/@/utils/serviceDict";

// 配置项
const columns = (): Partial<ColumnProps>[] => {
    return [{
            prop: "title",
            label: "菜单名称",
            search: true,
            align: 'left',
            width: 200,
        },
        {
            prop: "name",
            label: "菜单标识",
            search: true,
            width: 140,
        },
        {
            prop: "path",
            label: "菜单地址",
            search: true,
            width: 140,
        },
        {
            prop: "component",
            label: "组件",
            search: true,
            width: 240,
        },
        {
            prop: "icon",
            label: "图标",
            width: 100,
        },
        {
            prop: "seq",
            label: "排序",
            width: 100,
        },
        {
            prop: "hide",
            label: "是否隐藏",
            width: 120,
        },
        {
            prop: "keepAlive",
            label: "是否缓存",
            width: 120,
        },
        {
            prop: "affix",
            label: "是否固定",
            width: 120,
        },
        {
            prop: "iframe",
            label: "是否内嵌",
            width: 120,
        },
        {
            prop: "permissionList",
            label: "权限信息",
            tag: true,
            width:240
        },
        {
            prop: "operation",
            label: "操作",
            width: 160,
            fixed: "right"
        }
    ]
}

export default columns;